package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * 营业部
 */
@ApiModel(description = "营业部")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class AccountAttendInfoDept   {
  @JsonProperty("tel")
  private String tel = null;

  @JsonProperty("name")
  private String name = null;

  @JsonProperty("address")
  private String address = null;

  public AccountAttendInfoDept tel(String tel) {
    this.tel = tel;
    return this;
  }

  /**
   * 电话
   * @return tel
  **/
  @ApiModelProperty(example = "16177510", value = "电话")


  public String getTel() {
    return tel;
  }

  public void setTel(String tel) {
    this.tel = tel;
  }

  public AccountAttendInfoDept name(String name) {
    this.name = name;
    return this;
  }

  /**
   * 营业部名称
   * @return name
  **/
  @ApiModelProperty(example = "深圳南山营业部", value = "营业部名称")


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public AccountAttendInfoDept address(String address) {
    this.address = address;
    return this;
  }

  /**
   * 地址
   * @return address
  **/
  @ApiModelProperty(example = "报业大厦", value = "地址")


  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AccountAttendInfoDept accountAttendInfoDept = (AccountAttendInfoDept) o;
    return Objects.equals(this.tel, accountAttendInfoDept.tel) &&
        Objects.equals(this.name, accountAttendInfoDept.name) &&
        Objects.equals(this.address, accountAttendInfoDept.address);
  }

  @Override
  public int hashCode() {
    return Objects.hash(tel, name, address);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AccountAttendInfoDept {\n");
    
    sb.append("    tel: ").append(toIndentedString(tel)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    address: ").append(toIndentedString(address)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

